import request from '@/utils/request'

// 请求列表 错误码 403001
export function getfloorList(params) {
  return request({
    url: `/parkManage/floor/getList`,
    method: "get",
    params,
  });
}

// 新增 错误码 403002
export function addfloor(data) {
  return request({
    url: `/parkManage/floor/add`,
    method: "post",
    data,
  });
}

// 修改 错误码 403003
export function editfloor(data) {
  return request({
    url: `/parkManage/floor/edit`,
    method: "put",
    data,
  });
}


// 详情 错误码 403004
export function getfloorDetail(id) {
  return request({
    url: `/parkManage/floor/${id}`,
    method: "get",
  });
}

// 删除 错误码 403005
export function deleteFloor(id) {
  return request({
    url: `/parkManage/floor/delete/${id}`,
    method: "delete",
  });
}

// 回显楼层平面图和具体配置
export function getfloorSet(id) {
  return request({
    url: `/paper/binding/${id}`,
    method: "get",
  });
}

// 新增设置楼层平面图和具体配置
export function addSet(data) {
  return request({
    url: `/paper/binding/add`,
    method: "post",
    data,
  });
}

// 修改设置楼层平面图和具体配置
export function editSet(data) {
  return request({
    url: `/paper/binding/edit`,
    method: "post",
    data,
  });
}
